Incorporating intramolecular degrees of freedom in simulations of polarizable liquid water