Maximum likelihood estimation for linearity testing of ADCs stimulated by known constant signals