Characterizations of almost periodic strongly continuous cosine operator functions