André-Quillen cohomology theory of an algebra over an operad