Electrodeposited functionally graded coating inhibits Gram-positive and Gram-negative bacteria by a lipid peroxidation mediated membrane damage mechanism.