Buffer-gas loaded magnetic traps for atoms and molecules: A primer