Direct mass measurements of proton-rich isotopes of Ge, As, Se, and Br