A secondary solution of the Schrödinger and Klein-Gordon equations in modeling atomic, molecular and electrodynamic systems