Determining weak phases from B→J/ψP decays