The physics and applications of random lasers