Line shape function for semiconductor laser modelling