Very high energy gamma-ray follow-up observations of novae and dwarf novae with the MAGIC telescopes