Particle-hole calculation of the isobaric analog and isovector monopole resonances