Value distribution theory for moving targets