Laws of the iterated logarithm for locally square integrable martingales