Recurrence relations and determinant forms for general polynomial sequences. Application to Genocchi polynomials