Quadratic forms and their classification by means of invaria