Gunmen kill 38 in Nigeria attacks