Negative thermal expansion in the Ruddlesden-Popper calcium titanates