Effect of external pressure on the magnetic properties of LnFeAsO (Ln = La, Ce, Pr, Sm)