Maximal quotient rings of ring extensions