The behavior of which two phenomena caused physicists to encounter problems with their understanding of time in the late 19th century?