MASS-RADIUS RELATIONS AND CORE-ENVELOPE DECOMPOSITIONS OF SUPER-EARTHS AND SUB-NEPTUNES