First-principles calculations for the adsorption of water molecules on the Cu(100) surface