Semi-analytical formulations for the surface modes of photonic woodpiles