A new magnitude-frequency relation