Theory of viscous remanent magnetization acquisition and its application to flood dating