Electron energy states and miniband parameters in a class of non-uniform quantum well and superlattice structures