The evaluation of the matrix element for interband optical transitions in quantum wells using envelope functions