Optical properties of a two-nanospheroid cluster: analytical approach