Wave-particle duality for single photons