Implement the ability to prefer discrete GPUs over integrated GPUs.

This resolves #6.