Rotational spectrum and structure of the linear HCN trimer