Determinatal representations of real cubics and canonical forms of corresponding triples of matrices