On the genus of smooth 4-manifolds