Effects of soil type and farm management on soil ecological functional genes and microbial activities