Singular pp-waves, Junction conditions and BPS states