A technique for characterizing Carleson measures on Bergman spaces