Returns to scale from variable and total cost functions