New upper bounds on the smallest size of a complete cap in the spaces PG(3, q) and PG(4, q)