Microscopic characterisation of photonic devices