An average model of dc–dc step‐up converter considering switching losses and parasitic elements