Steady-state and time-resolved near-field optical spectroscopy of GaN/AlN quantum dots and InGaN/GaN quantum wells