Mark Selby and Martin Gould produced some sumptuous snooker in a European Masters final won by the three-time world champion.