Nonpolynomial gauge invariant interactions of 1-form and 2-form gauge potentials