Betatron radiation from laser wakefield accelerators and its applications