Biobased production of alkanes and alkenes through metabolic engineering of microorganisms