Chirped and chirp-free optical solitons in fiber Bragg gratings with dispersive reflectivity having quadratic-cubic nonlinearity by sub-ODE approach