Generation, measurement and application of x-rays from laser-plasma electron accelerators