Fourier-transform K∙P method for modeling electronic structures and optical properties of low dimensional heterostructures