Interaction of a water molecule with a graphene layer