On suprema of Lévy processes and application in risk theory