On sizes of complete caps in projective spaces PG(n, q) and arcs in planes PG(2, q)