A quantum-mechanical study of the water molecule