Efficient Quantum Gradient and Higher-order Derivative Estimation via Generalized Hadamard Test