Marginally stable circular orbit of a test body in spherically symmetric and static spacetimes