Probing π-coupling in molecular junctions