A mechanistic model of photoadaptation in microalgae