Higher-derivative holography with a chemical potential