Monte Carlo study of order–disorder layering transitions in the Blume–Capel model