Infiltrating militants planned to blow up trains in J&K: BSF