Lamp projecting starry sky and nebula generation method thereof