Energy trapping in a phononic crystal cavity enhanced by nonreciprocal acoustic wave transmission