Identities involving zeros of Ramanujan and Shanks cubic polynomials