The Lichtenbaum-Hartshorne theorem for modules which are finite over a ring homomorphism