Probabilistic inference of transcription factor concentrations and gene-specific regulatory activities