Controlled electron and hole trapping in YPO4:Ce3+,Ln3+ and LuPO4:Ce3+,Ln3+ (Ln=Sm, Dy, Ho, Er, Tm)