Side contact effects on the capacitance properties of junction devices. Application to III-nitrogen structures