implemented arbitrary depth profiles for layer thickness