Self-similar gelling solutions for the coagulation equation with diagonal kernel