Rail travelers advised to travel only when necessary amid extreme heat