Shot-by-shot characterization of focused X-ray free electron laser pulses