New framework for studying spherically symmetric static solutions in f (R) gravity