The electrostatic potential profile along a biased molecular wire: A model quantum-mechanical calculation