Two-loop six-gluon maximally helicity violating amplitude in maximally supersymmetric Yang-Mills theory