Intervals of P-matrices and related matrices