Mother jailed for taking abortion pills after legal limit