Similarity Invariance of Reachability and Observability