Molecular and ionized gas in the peculiar galaxy NGC 2146