added functions for layer on substrate to papNiCu.py