In-beam gamma-ray spectroscopy of 35Mg and 33Na