Principles of confounder selection