Electrical stimulation to reduce pain and improve function after knee replacement