Applying Gröbner bases to solve reduction problems for Feynman integrals