Reference plane for the electronic states in thin films on stepped surfaces