Renormalization-group results for the Blume-Capel model in two and three dimensions