Wronskian and linear superposition solutions to generalized KP and BKP equations