A method for estimating the temperature in high energy density free electron laser experiments