Error bounds for the linear complementarity problem with a P-matrix