Application of a homogeneous balance method to exact solutions of nonlinear equations in mathematical physics