Eagle Materials sees gains in sales and earnings