Study of edge excitation protolytic photo effect in dyes and structure sensitive transitions in rare earth ions