Efficient Perturbative Framework for Coupling of Radiative and Guided Modes in Nearly Periodic Surfaces