Bounded generation and commutator width of Chevalley groups: function case