Japan rail firm punished staff with toilet duty