Constrained Visual Representation Learning with Bisimulation Metrics for Safe Reinforcement Learning