Leptodermic corrections to the TOV equations and nuclear astrophysics within the effective surface approximation