Maximum likelihood estimates for frequencies of sinusoids of unknown scaling and phase