Exceptional real Lie algebras $\mathfrak{f}_4$ and $\mathfrak{e}_6$ via contactifications