Forces on the nuclei of a molecule in optical fields