Phase transition, structural, mechanical and thermal properties of erbium pnictides under pressure