Master integrals with one massive propagator for the two-loop electroweak form factor