Calculate the volume of a solid of revolution