Periodic attitudes and bifurcations of a rigid spacecraft in the second degree and order gravity field of a uniformly rotating asteroid