Computational sequence and structure design of cofactor binding proteins