Text this: Analytical vernier effect for nanophotonics circuits using ring resonator