Strichartz estimates for the wave and Schrödinger equations with the inverse-square potential