Electric-field-dependent empirical potentials for molecules and crystals: A first application to flexible water molecule adsorbed in zeolites