Planetary core size: A seismological approach