add wavelet_1d
more pad/unpad for 1d outside & make it only work on one layer at a time
fix wavelet_layer_1d to be compatible with scatt