Trigonal hyperplane sections of projective surfaces