chart.rb : add write_gridlines_common

  Extract method from write_major_gridlines and write_minor_gridlines
chart.rb : add write_def_rpr_r_pr_common

  Extract method from write_a_def_rpr and write_a_r_pr