Superharmonic functions of Schrödinger operators and Hardy inequalities