Safe Inverse Reinforcement Learning via Control Barrier Function