Nonlinear Schrödinger equations with Hardy potential and critical nonlinearities