rock analysis