A multifactorial study on duration of temporary disabilities in Spain