Three-loop master integrals for ladder-box diagrams with one massive leg