Efficient simulation of the impact of interface grading on the transport and optical properties of semiconductor heterostructures